 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */
 package cn.shun.controller;

 import cn.shun.dao.UserInfoDao;
 import cn.shun.local.LocalUserThreadLocal;
 import cn.shun.model.UserInfo;
 import jakarta.annotation.Resource;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;

 /**
  * <p>Project: sboot_2023-cn.shun.controller-UserInfoController
  * <p>Powered by yishun On 2023-04-18 14:56:24
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 @RestController
 @RequestMapping("/api/userInfo")
 public class UserInfoController {
     @Resource
     private UserInfoDao userInfoDao;

     @GetMapping
     public UserInfo select() {
         return userInfoDao.select(LocalUserThreadLocal.get().getId());
     }

 }
